package com.hongye.common.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.ws.Response;

/**
 * @author fyd
 * @email 2104371759@qq.com
 * @date 2022/4/13
 * @time 9:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseResult<T> {

    /**
     * 是否成功
     */
    private Boolean success;
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 提示消息
     */
    private String message;

    /**
     * 返回数据
     */
    private T data;

    public ResponseResult(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
